<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>锁定维度规则表</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .container {
            max-width: 1200px;
            width: 100%;
            margin: 20px auto;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: #2c3e50;
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            width: 100%;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .legend {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }

        .color-box {
            width: 20px;
            height: 20px;
            margin-right: 8px;
            border-radius: 4px;
        }

        .table-container {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            background: #34495e;
            color: white;
            font-weight: 600;
            text-align: left;
            padding: 16px 20px;
            font-size: 1.1rem;
        }

        td {
            padding: 14px 20px;
            border-bottom: 1px solid #eef1f5;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        tr:last-child td {
            border-bottom: none;
        }

        tr:nth-child(even) {
            background-color: #f8f9fc;
        }

        .lock-type {
            font-weight: bold;
            color: #2c3e50;
            font-size: 1.05rem;
        }

        .type-lock-order {
            background-color: rgba(231, 76, 60, 0.1);
        }

        .type-lock-card {
            background-color: rgba(52, 152, 219, 0.1);
        }

        .type-lock-count {
            background-color: rgba(46, 204, 113, 0.1);
        }

        .type-lock-ship {
            background-color: rgba(155, 89, 182, 0.1);
        }

        .dimension {
            font-weight: 600;
            color: #e74c3c;
            background: rgba(231, 76, 60, 0.1);
            padding: 4px 8px;
            border-radius: 4px;
            display: inline-block;
        }

        .note {
            background: #f8f9fc;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #3498db;
            margin-top: 20px;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .note h3 {
            margin-bottom: 10px;
            color: #2c3e50;
        }

        footer {
            text-align: center;
            margin-top: 30px;
            color: #7f8c8d;
            font-size: 0.9rem;
            padding: 20px;
        }

        @media (max-width: 768px) {
            th, td {
                padding: 12px 15px;
            }

            h1 {
                font-size: 2rem;
            }

            .subtitle {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            th, td {
                padding: 10px 12px;
                font-size: 0.85rem;
            }

            .lock-type {
                font-size: 0.95rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
<!--        <header>-->
<!--            <h1>锁定维度规则表</h1>-->
<!--            <p class="subtitle">本表格详细说明了不同锁定类型下的规则说明及对应的锁定维度</p>-->
<!--        </header>-->

<!--        <div class="legend">-->
<!--            <div class="legend-item">-->
<!--                <div class="color-box" style="background: rgba(231, 76, 60, 0.1);"></div>-->
<!--                <span>锁下单</span>-->
<!--            </div>-->
<!--            <div class="legend-item">-->
<!--                <div class="color-box" style="background: rgba(52, 152, 219, 0.1);"></div>-->
<!--                <span>锁下卡</span>-->
<!--            </div>-->
<!--            <div class="legend-item">-->
<!--                <div class="color-box" style="background: rgba(46, 204, 113, 0.1);"></div>-->
<!--                <span>锁过数</span>-->
<!--            </div>-->
<!--            <div class="legend-item">-->
<!--                <div class="color-box" style="background: rgba(155, 89, 182, 0.1);"></div>-->
<!--                <span>锁出货</span>-->
<!--            </div>-->
<!--        </div>-->

        <div class="table-container">
            <table>
                <thead>
                    <tr>
                        <th width="20%">类型</th>
                        <th width="55%">说明</th>
                        <th width="25%">锁定维度</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- 锁下单 -->
                    <tr class="type-lock-order">
                        <td class="lock-type">锁下单</td>
                        <td>1、填客户型号，没填厂编，锁定客户型号下全部厂编</td>
                        <td><span class="dimension">客户型号</span></td>
                    </tr>
                    <tr class="type-lock-order">
                        <td></td>
                        <td>2、填客户型号，填厂编，厂编维度锁定</td>
                        <td><span class="dimension">厂编</span></td>
                    </tr>
                    <tr class="type-lock-order">
                        <td></td>
                        <td>3、填厂编，没填客户型号，厂编维度锁定</td>
                        <td><span class="dimension">厂编</span></td>
                    </tr>

                    <!-- 锁下卡 -->
                    <tr class="type-lock-card">
                        <td class="lock-type">锁下卡</td>
                        <td>1、填厂编，没填MO，厂编维度锁定</td>
                        <td><span class="dimension">厂编</span></td>
                    </tr>
                    <tr class="type-lock-card">
                        <td></td>
                        <td>2、填MO，没填厂编</td>
                        <td><span class="dimension">销售单</span></td>
                    </tr>
                    <tr class="type-lock-card">
                        <td></td>
                        <td>3、锁下单同时锁下卡：填客户型号，没填厂编和MO</td>
                        <td><span class="dimension">客户型号</span></td>
                    </tr>

                    <!-- 锁过数 -->
                    <tr class="type-lock-count">
                        <td class="lock-type">锁过数</td>
                        <td>1、填工序</td>
                        <td><span class="dimension">工序</span></td>
                    </tr>
                    <tr class="type-lock-count">
                        <td></td>
                        <td>2、填Lot号，没填工序</td>
                        <td><span class="dimension">Lot号（内层自动锁定）</span></td>
                    </tr>
                    <tr class="type-lock-count">
                        <td></td>
                        <td>3、填MO，没填Lot和工序</td>
                        <td><span class="dimension">MO(内外层Lot全部锁定)</span></td>
                    </tr>
                    <tr class="type-lock-count">
                        <td></td>
                        <td>4、填厂编，其他没填</td>
                        <td><span class="dimension">厂编维度</span></td>
                    </tr>

                    <!-- 锁出货 -->
                    <tr class="type-lock-ship">
                        <td class="lock-type">锁出货</td>
                        <td>1、填Lot</td>
                        <td><span class="dimension">Lot号</span></td>
                    </tr>
                    <tr class="type-lock-ship">
                        <td></td>
                        <td>2、填MO，没填Lot</td>
                        <td><span class="dimension">MO</span></td>
                    </tr>
                    <tr class="type-lock-ship">
                        <td></td>
                        <td>3、填厂编，Lot、MO没填</td>
                        <td><span class="dimension">厂编</span></td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="note">
            <h3>使用说明：</h3>
            <p>1. 本表格根据输入参数的不同条件，定义了四种锁定类型（锁下单、锁下卡、锁过数、锁出货）的维度规则</p>
            <p>2. "锁定维度"列表示在特定条件下将被锁定的数据维度</p>
            <p>3. 相同锁定类型的规则按照优先级从上到下排列</p>
            <p>4. 当输入参数满足多种条件时，系统将按照表格中定义的规则确定锁定维度</p>
        </div>

<!--        <footer>-->
<!--            <p>© 2023 生产管理系统 | 锁定规则维度表 | 最后更新: 2023-10-15</p>-->
<!--        </footer>-->
    </div>
</body>
</html>